package com.example.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @Classname TController
 * @Description TODO
 * @Date 2021/4/17 21:34
 * @Created by yin
 */
@RestController
public class TController {

    @RequestMapping("/test1")
    public void t1() throws Exception {
        System.out.println("方法1");
        throw new Exception("异常了");
    }
}
